<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>商店</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="../../css/mui.min.css">
		<style>
			.mui-row.mui-fullscreen>[class*="mui-col-"] {
				height: 100%;
			}
			
			.mui-col-xs-3,
			.mui-control-content {
				overflow-y: auto;
				height: 100%;
			}
			
			.mui-segmented-control .mui-control-item {
				line-height: 40px;
				width: 100%;
			}
			
			.mui-segmented-control.mui-segmented-control-inverted .mui-control-item.mui-active {
				background-color: #fff;
			}
		</style>
	</head>

	<body>
		<div class="mui-navbar-inner mui-bar mui-bar-nav">
			<h1 class="mui-center mui-title">店铺</h1>
		</div>
		<div class="mui-content mui-row mui-fullscreen" style="margin-top: 5px;">
			<div class="mui-col-xs-3">
				<div id="segmentedControls" class="mui-segmented-control mui-segmented-control-inverted mui-segmented-control-vertical">
				</div>
			</div>
			<div id="segmentedControlContents" class="mui-col-xs-9" style="border-left: 1px solid #c8c7cc;">
				<div id="item1" class="mui-control-content mui-active"></div>
				<div id="item2" class="mui-control-content"></div>
				<div id="item3" class="mui-control-content"></div>
			</div>
		</div>

		<script src="../../js/mui.min.js"></script>
		<script>
			mui.init({
				swipeBack: false
			});
			var controls = document.getElementById("segmentedControls");
			var contents = document.getElementById("segmentedControlContents");
			var html = [];
			var i = 0,
				j = 0,
				m = 6, //左侧选项卡数量
				n = 21; //
			for (; i < m; ++i) {
				html.push('<a class="mui-control-item" href="#content' + i + '">品种' + i + '</a>');
			}
			controls.innerHTML = html.join('');
			html = [];
			for (i = 0; i < m; ++i) {
				html.push('<div id="content' + i + '" class="mui-control-content"><ul class="mui-table-view">');
				for (j = 0; j < n; ++j) {
					html.push('<li class="mui-table-view-cell"><div class="mui-media"><a href="javascript:;"><img class="mui-pull-left" style="max-width:100px;height:100px;margin-right: 5px;" src="../images/showlist-0.JPG" alt="展示图" /><div class="mui-media-body "><h5 style="line-height:18px;color:black;font-weight:bold;"><span class="mui-ellipsis-2">超级'+i+'-甜甜圈'+j+'</span></h5><h6 style="line-height:15px"><span class="mui-ellipsis-2">说明物品的说明，超级无敌-甜甜圈的说明</span></h6><h5 style="color: red;">售价：￥5</h5></div></a></div></li>')

				}
				html.push('</ul></div>');
			}
			contents.innerHTML = html.join('');
			//默认选中第一个
			controls.querySelector('.mui-control-item').classList.add('mui-active');
			contents.querySelector('.mui-control-content').classList.add('mui-active');
		</script>
	</body>

</html>